home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python151_Src.lha / Python1.5_Source / Embed / testscript.py < prev   
Text File  |  1999-04-13  |  378b  |  22 lines

  1. print 'This is executed from a separate test script'
  2.  
  3. try:
  4.  
  5.     import xyzzy
  6.  
  7.     print xyzzy.foo()
  8. except ImportError,x:
  9.     print 'importing xyzzy failed',x
  10.  
  11. result='abc'*9
  12.  
  13.  
  14. import sys
  15.  
  16. print 'sys.path=',sys.path
  17. print 'sys.argv=',sys.argv
  18. print 'sys.exec_prefix=',sys.exec_prefix
  19. print 'sys.executable=',sys.executable
  20. print 'sys.prefix=',sys.prefix
  21. print 'sys.version=',sys.version
  22.